﻿using System.Collections.Generic;
using Newtonsoft.Json;

namespace BlogApp.Data.Models
{
    public class Post
    {

        [JsonProperty("IsOffline")]
        public bool IsOffline{ get; set; }

        [JsonProperty("id")]
        public int Id { get; set; }

        [JsonProperty("type")]
        public string Type { get; set; }

        [JsonProperty("slug")]
        public string Slug { get; set; }

        [JsonProperty("url")]
        public string Url { get; set; }

        [JsonProperty("status")]
        public string Status { get; set; }

        [JsonProperty("title")]
        public string Title { get; set; }

        [JsonProperty("title_plain")]
        public string TitlePlain { get; set; }

        [JsonProperty("content")]
        public string Content { get; set; }

        [JsonProperty("excerpt")]
        public string Excerpt { get; set; }

        [JsonProperty("date")]
        public string Date { get; set; }

        [JsonProperty("modified")]
        public string Modified { get; set; }

        [JsonProperty("categories")]
        public List<Category> Categories { get; set; }

        [JsonProperty("tags")]
        public Tag[] Tags { get; set; }

        [JsonProperty("author")]
        public Author Author { get; set; }

        [JsonProperty("comments")]
        public List<object> Comments { get; set; }

        [JsonIgnoreAttribute]
        [JsonProperty("attachments")]
        public Attachment[] Attachments { get; set; }

        [JsonProperty("comment_count")]
        public int CommentCount { get; set; }

        [JsonProperty("comment_status")]
        public string CommentStatus { get; set; }

        [JsonProperty("thumbnail")]
        public string Thumbnail { get; set; }

        [JsonProperty("custom_fields")]
        public CustomFields CustomFields { get; set; }

        [JsonProperty("thumbnail_size")]
        public string ThumbnailSize { get; set; }

        [JsonProperty("thumbnail_images")]
        public ThumbnailImages ThumbnailImages { get; set; }
    }
}